 <table class="list">
    <?php for ($i = 0; $i < 12; $i = $i + 4) { ?>
    <tr>
      <?php for ($j = $i; $j < ($i + 4); $j++) { ?>
      <td>
		<div class="row" style="visibility: visible; opacity: 1; display: block;">
			<ul>
				<h1></h1>
			</ul>
		</div>
      </td>
  <?php } ?>
</tr>
<?php } ?>
</table>